package com.stxx.assistant.framwork.constants;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @author Fuzhenlei
 * @date 2025/01/17 13:09
 */
public enum LogicType implements IEnum<LogicType>{
    EQ("EQ"),
    NE("NE"),
    GT("GT"),
    LT("LT"),
    GE("GE"),
    LE("LE"),
    LIKE ("LIKE"),
    LIKE_LEFT("LIKE_LEFT"),
    LIKE_RIGHT("LIKE_RIGHT");
    String code;
    LogicType(String name){
        this.code = name;
    }

    public static List<String> getList(){
        return Arrays.stream(LogicType.values()).map(item->item.code).collect(Collectors.toList());
    }

    @Override
    public String toString(){
        return code;
    }

}
